<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="/js/jquery-3.3.1.min.js"></script>
    <script src="js/index.js"></script>
</head>
<body>
    <h1>登录</h1>
    <div>
        form post
        <form action="/api/data" method="post">
            用户名：<input name='name'/><br>
            密码：<input name='pass'/><br>
            <button>login</button>
        </form>
    </div>
    <div>
        form get
        <form action="/api/getData" method="get">
            用户名：<input name='name'/><br>
            密码：<input name='pass'/><br>
            <button>login</button>
        </form>
    </div>

    <div>
        用户名：<input id="name" name='name'/><br>
        密码：<input id="pass" name='pass'/><br>
        <button id="jb">jquery</button>
    </div>


</body>
</html>